package com.star.mall.config;

import com.star.mall.constants.TopicConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue operationLogQueue() {
        return new Queue(TopicConstant.OPERATION_LOG,true);
    }

}
